home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / SchemaWin$16.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.6 KB  |  35 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.BaseAction;
  4. import com.extensibility.app.DialogFactory;
  5. import com.extensibility.app.UI;
  6. import java.awt.event.ActionEvent;
  7.  
  8. class SchemaWin$16 extends BaseAction {
  9.    // $FF: synthetic field
  10.    final SchemaWin this$0;
  11.  
  12.    public void actionOccurred(ActionEvent var1) {
  13.       if (this.this$0.commitPendingEdits(true)) {
  14.          if (this.this$0.getSchemaDoc().getSchema().isSupported("GESTALT_SECOND_PASS_VALIDATION") && this.this$0.getSchemaDoc().isTouched()) {
  15.             DialogFactory.note(this.this$0, UI.getString("note.check.errors.2pass.notsaved"));
  16.          }
  17.  
  18.          this.this$0.getSchemaDoc().checkForErrors(false);
  19.          int var2 = this.this$0.getSchemaDoc().countErrors() + this.this$0.getSchemaDoc().getParseErrors().size();
  20.          if (var2 == 0) {
  21.             DialogFactory.note(this.this$0, UI.getString("note.check.errors.done.ok"));
  22.             this.this$0.hideErrorPane();
  23.          } else {
  24.             this.this$0.showErrorPane(false);
  25.          }
  26.  
  27.       }
  28.    }
  29.  
  30.    SchemaWin$16(SchemaWin var1, String var2, char var3) {
  31.       super(var2, var3);
  32.       this.this$0 = var1;
  33.    }
  34. }
  35.